package com.r2coding.core.utils;

import java.util.UUID;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : UUID工具类
 * @Create on : 2023/9/22 13:26
 **/
public class UUIDUtil {
    public static final String EMPTY_STR = "";
    public static final String HYPHEN_STR = "-";

    /**
     * 获取UUID字符串
     *
     * @return UUID字符串
     */
    public static String getUUID() {
        return UUID.randomUUID().toString().replace(HYPHEN_STR, EMPTY_STR).toUpperCase();
    }
}
